package com.d0323;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class FileWriterTest {
    public static void main(String[] args) throws IOException {
        FileWriter fw=new FileWriter(new File("src/com//d0323/writer.txt"));
        BufferedWriter bw=new BufferedWriter(fw);//使用缓冲流效率更高
        fw.write("hello,chinasofity");
        bw.close();
        fw.close();

    }
}
